package com.yugao.fintech.antelope.shop.assembly;

import com.yugao.fintech.antelope.shop.model.entity.Goods;
import com.yugao.fintech.antelope.shop.model.rqrs.goods.GoodsResp;
import com.yugao.fintech.antelope.shop.model.rqrs.goods.GoodsSaveReq;
import com.yugao.fintech.antelope.shop.model.rqrs.goods.GoodsUpdateReq;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface GoodsAssembly {
  GoodsResp toGoodsResp(Goods source);
  
  Goods toGoods(GoodsSaveReq source);
  
  Goods toGoods(GoodsUpdateReq source);
}
